Not sure what's wrong here no matter what I try it returns the TypeError: 'NoneType' object is not i